<div class="menu_site">
    <ul class="main_menu">
        <?php foreach ($this->arrMenu as $k=>$arrMenu) { 
            $catecode = ($k == 0)?$arrMenu['catecode']:PREFIX_URL.$arrMenu['catecode'];
            if($arrMenu['category_id'] == $this->categoryID){
                echo '<li class="active"><a href="' . BASE_URL . '/' . $catecode .'">'. $arrMenu['catename'].'</a></li>';
            }else{
                echo '<li><a href="' . BASE_URL . '/' . $catecode .'">'. $arrMenu['catename'].'</a></li>';
            }
        }?>
    </ul>
</div>